﻿using Newtonsoft.Json;

namespace Discord.Param;

/// <summary>
/// 放大/优化/重绘请求参数
/// </summary>
public class OperatePayLoad : BasePayload
{
    [JsonProperty(PropertyName = "message_id")]
    public string MessageId { get; set; } = "";

    [JsonProperty(PropertyName = "message_flags")]
    public int MessageFlags { get; set; }

    [JsonProperty(PropertyName = "data")]
    public OperatePayLoadInfo Data { get; set; } = new();
}

public class OperatePayLoadInfo
{
    [JsonProperty(PropertyName = "component_type")]
    public int ComponentType { get; set; } = 2;

    [JsonProperty(PropertyName = "custom_id")]
    public string CustomId { get; set; } = "";
}